﻿using ShanNiang.Service.Scaner;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ShanNiang.Service.Interfaces
{
    /// <summary>
    /// 扫码器服务接口
    /// </summary>
    public interface IScanerService
    {
        /// <summary>
        /// 开启服务
        /// </summary>
        void Start();
        /// <summary>
        /// 关闭服务
        /// </summary>
        void Stop();
        /// <summary>
        /// 有效码已扫描
        /// </summary>
        /// <param name="text"></param>
        event EventHandler<CodeEventArgs>? CodeScaned;
    }
}
